package com.shengqin.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shengqin.common.pojo.CommonPage;
import com.shengqin.common.pojo.CommonResult;
import com.shengqin.entity.CalculateLog;
import com.shengqin.service.ICalculateLogService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/v1/log")
public class CalculateLogController {

    @Resource
    private ICalculateLogService calculateLogService;

    @PostMapping("/queryPage")
    public CommonResult<Page<CalculateLog>> queryPage(@RequestBody CommonPage<CalculateLog> commonPage) {
        return CommonResult.data(calculateLogService.queryPage(commonPage));
    }

}
